package com.wwwarehouse.taskcenter.bean.job_point;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * author ：minifly
 * date: 2017/10/28
 * time: 14:38
 * desc:
 */
public class AddJobPointStep5LookItemMesResponseBean implements Parcelable {

    private ArrayList<ListBean> list;

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }


    public static class ListBean implements Parcelable {

        /**
         * categoryName : 测试_作业点1
         * metaCategoryUkid : 11111111
         *  unitName	单位名称	string
         unitUkid	单位ukdi	number
         */


        private String categoryName;
        private String metaCategoryUkid;
        private String unitName,unitUkid;
        private boolean isClick;
        private int count = 1;//默认是1的
        private boolean isJustShow = false;

        public boolean isJustShow() {
            return isJustShow;
        }

        public void setJustShow(boolean justShow) {
            isJustShow = justShow;
        }
        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public boolean isClick() {
            return isClick;
        }

        public void setClick(boolean click) {
            isClick = click;
        }

        public String getCategoryName() {
            return categoryName;
        }

        public void setCategoryName(String categoryName) {
            this.categoryName = categoryName;
        }

        public String getMetaCategoryUkid() {
            return metaCategoryUkid;
        }

        public void setMetaCategoryUkid(String metaCategoryUkid) {
            this.metaCategoryUkid = metaCategoryUkid;
        }

        public String getUnitName() {
            return unitName;
        }

        public void setUnitName(String unitName) {
            this.unitName = unitName;
        }

        public String getUnitUkid() {
            return unitUkid;
        }

        public void setUnitUkid(String unitUkid) {
            this.unitUkid = unitUkid;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.categoryName);
            dest.writeString(this.metaCategoryUkid);
            dest.writeString(this.unitName);
            dest.writeString(this.unitUkid);
            dest.writeByte(this.isClick ? (byte) 1 : (byte) 0);
            dest.writeInt(this.count);
            dest.writeByte(this.isJustShow ? (byte) 1 : (byte) 0);
        }

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            this.categoryName = in.readString();
            this.metaCategoryUkid = in.readString();
            this.unitName = in.readString();
            this.unitUkid = in.readString();
            this.isClick = in.readByte() != 0;
            this.count = in.readInt();
            this.isJustShow = in.readByte() != 0;
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel source) {
                return new ListBean(source);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.list);
    }

    public AddJobPointStep5LookItemMesResponseBean() {
    }

    protected AddJobPointStep5LookItemMesResponseBean(Parcel in) {
        this.list = new ArrayList<ListBean>();
        in.readList(this.list, ListBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<AddJobPointStep5LookItemMesResponseBean> CREATOR = new Parcelable.Creator<AddJobPointStep5LookItemMesResponseBean>() {
        @Override
        public AddJobPointStep5LookItemMesResponseBean createFromParcel(Parcel source) {
            return new AddJobPointStep5LookItemMesResponseBean(source);
        }

        @Override
        public AddJobPointStep5LookItemMesResponseBean[] newArray(int size) {
            return new AddJobPointStep5LookItemMesResponseBean[size];
        }
    };
}
